const http = uni.$u.http

// 粉丝列表
export const fansList = param => http.post('admin/member.Fans/list', param, {
	custom: {
		loadingTitle: '拉取中...'
	}
})
// 粉丝列表
export const adminFansList = (params = {}) => http.get('admin/member.Member/list', { params }, {
	custom: {
		loadingTitle: '拉取中...'
	}
})
// 我的关注
export const followList = param => http.post('api/member.Member/focus', param, {
	custom: {
		loadingTitle: '拉取中...'
	}
})
// 优惠券
export const couponsList = param => http.post('api/member.Member/coupons', param, {
	custom: {
		loadingTitle: '拉取中...'
	}
})
// 消费记录
export const recordList = param => http.post('api/member.Order/list', param, {
	custom: {
		loadingTitle: '拉取中...'
	}
})
// 退款记录
export const refundList = param => http.post('api/member.Order/refund', param, {
	custom: {
		loadingTitle: '拉取中...'
	}
})
// 收入明细列表
export const detailedList = param => http.post('admin/order.Order/list', param, {
	custom: {
		loadingTitle: '拉取中...'
	}
})
// 每日统计
export const statisticsList = param => http.post('admin/system.UserCenter/daily_statistics', param, {
	custom: {
		loadingTitle: '拉取中...'
	}
})

// 手机绑定验证码
export const phoneCaptcha = param => http.post('api/member.Member/phoneCaptcha', param, {
	custom: {
		loadingTitle: '获取中...'
	}
})

// 手机绑定
export const phoneBind = param => http.post('api/member.Member/phoneBind', param, {
	custom: {
		loadingTitle: '绑定中...'
	}
})

// 文件列表
export const fileList = param => http.post('admin/file.File/list', param, {
	custom: {
		loadingTitle: '加载中...'
	}
})

// 投诉
export const feedbackAdd = param => http.post('api/setting.Feedback/add', param, {
	custom: {
		loadingTitle: '提交中...'
	}
})

// 投诉列表
export const feedbackList = (params = {}) => http.get('api/setting.Feedback/list', { params }, {
	custom: {
		loadingTitle: '拉取中...'
	}
})

// 投诉信息
export const feedbackInfo = (params = {}) => http.get('api/setting.Feedback/info', { params }, {
	custom: {
		loadingTitle: '获取中...'
	}
})

// 投诉
export const feedbackUpresult = param => http.post('api/setting.Feedback/upresult', param, {
	custom: {
		loadingTitle: '操作中...'
	}
})

// 用户添加文件
export const userAddFile = (fileInfo = {}) => http.upload('api/setting.Upload/file', fileInfo)
// 充值订单详情
export const rechargeInfo = (params = {}) => http.get('api/member.Recharge/info', { params }, {
	custom: {
		loadingTitle: '查询中...'
	}
})
// 组员列表
export const myUserList = (params = {}) => http.get('admin/system.UserCenter/myUserList', { params }, {
	custom: {
		loadingTitle: '拉取中...'
	}
})